@{
    var currentAction = ViewContext.RouteData.Values["action"].ToString();
}

<div class="card mb-4">
    <div class="card-header">
        <h5 class="mb-0">账户管理</h5>
    </div>
    <div class="list-group list-group-flush">
        <a asp-controller="Account" asp-action="Profile" 
           class="list-group-item list-group-item-action @(currentAction == "Profile" ? "active" : "")">
            <i class="bi bi-person me-2"></i> 个人资料
        </a>
        <a asp-controller="Account" asp-action="ChangePassword" 
           class="list-group-item list-group-item-action @(currentAction == "ChangePassword" ? "active" : "")">
            <i class="bi bi-key me-2"></i> 修改密码
        </a>
    </div>
</div> 